import request from '@/config/axios'
import axios from 'axios'

export const getInfo = async (params?: any) => {
  return await request.get({ url: `/erp/dashboard-statistics/device-status`, params })
}

export const getToken = async () => {
  return await request.get({ url: `erp/dashboard-statistics/video-token` })
}

export const getWeather = async () => {
  return axios.get('https://nu2tunbn2t.re.qweatherapi.com/v7/weather/now?location=101160205',{
    headers:{
      'X-QW-Api-Key': 'dacef0f5311f4f8f9a8dac76b8a45fac'
    }
  })
}
